package com.ms.p2p.service.impl;

import com.ms.p2p.dao.FuyouBankDao;
import com.ms.p2p.entity.FuyouBank;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chensk on 2018/3/15.
 */
@Service
public class FuyouServiceImpl  {
    @Autowired
    FuyouBankDao fuyouBankDao;

    @Cacheable(value="fuyoubanks")
    public List<FuyouBank> getList(){
        return fuyouBankDao.findList();
    }
}
